package com.gome.ocean.dao.authority;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.session.RowBounds;
import org.springframework.stereotype.Repository;

import com.gome.ocean.dao.model.authority.GSystemUpdateLog;

@Repository("GSystemUpdateLogDAO")
public interface GSystemUpdateLogDAO {

    int deleteByPrimaryKey(Long id);

    int insertSelective(GSystemUpdateLog record);

    GSystemUpdateLog selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(GSystemUpdateLog record);

    int updateAll();

    /**
     * 查找最新时间的系统日志
     */
    List<GSystemUpdateLog> findSysLogByLatelyTime(Map<String, Object> param);

    List<GSystemUpdateLog> getLogByGroup(Map<String, Object> param);

    List<GSystemUpdateLog> getList(RowBounds rowBounds);

    List<GSystemUpdateLog> getAllSysLogByMap(Map<String, Object> map);

    public String findMaxTimeByStatusAndScope(Map<String, Object> param);
}
